<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/4
  Time: 15:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../common/web_top.jsp" %>
<title>已结清</title>
<div ng-include="finance" class="includeStyle ">
    <div class="bgSortScroll">
        <!-- ngIf: HbHr.hr164 -->
        <div class="public-bgContent " ng-show="financeShow._default" ng-if="HbHr.hr164">
            <!--表单搜索-->
            <div class="public-bgDate">
                <div class="se-re">
                    <select ng-model="param.time_type" class="ng-pristine ng-untouched ng-valid ng-empty">
                        <option value="" selected="selected">时间类型</option>
                        <option value="1">结清日期</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <span>
            <input type="text" autocomplete="off" id="start_time" ng-model="param.start_time" ng-focus="remHight()"
                   ng-class="{'error':redErr.dateTime}" placeholder="开始时间"
                   class="ng-pristine ng-valid ng-empty ng-touched datepicker">
            <i class="iconfont icon-riqi"></i>
        </span>
                <em>
                    ~
                </em>
                <span>
            <input type="text" autocomplete="off" id="end_time" ng-model="param.end_time" ng-focus="remHight()"
                   ng-class="{'error':redErr.dateTime}" placeholder="结束时间"
                   class="ng-pristine ng-valid ng-empty ng-touched datepicker">
            <i class="iconfont icon-riqi"></i>
        </span>
                <div class="se-re">
                    <select id="seleNames" ng-model="param.type" ng-class="{'error':redErr.seleName}"
                            ng-focus="F.remHight()" ng-change="changeName()"
                            class="ng-pristine ng-valid ng-empty ng-touched">
                        <option value="" selected="selected">选择字段</option>
                        <option value="1">借款编号</option>
                        <option value="2">客户姓名</option>
                        <option value="3">手机号码</option>
                        <option value="4">身份证号码</option>
                        <option value="5">业务员姓名</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <span>
            <input type="text" autocomplete="off" id="inputNames" placeholder="请输入关键字" ng-focus="F.remHight()"
                   ng-model="param.name"
                   class="ng-pristine ng-valid ng-empty ng-touched">
        </span>
                <div class="se-re">
                    <select id="at_id"></select>
                    <script type="text/x-handlebars-template" id="at_id_tpl">
                        <option value="">分期</option>
                        {{#each .}}
                        <option value="{{id}}" data-num="{{num}}">{{atName}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po"></span>
                </div>
                <!-- <div class="se-re">
                    <select ng-model="param.loan_way">
                        <option value="">贷款方式</option>
                        <option value="1">押证</option>
                        <option value="2">押车</option>
                    </select>
                    <span class="se-po"></span>
                </div> -->
                <div id="sousuo_settle" style="display: inline-block"></div>
                <script type="x-handlebars-template" id="sousuo_settle_tpl">
                    <div class="se-re">
                        <select ng-options="a.id as a.d_name for a in section" ng-model="param.departmentId"
                                class="ng-pristine ng-untouched ng-valid ng-empty sousuo_department_select">
                            <option value="" class="" selected="selected">部门</option>
                            {{#each .}}
                            <option value="{{id}}">{{d_name}}</option>
                            {{/each}}
                        </select>
                        <span class="se-po se-po-span"></span>
                    </div>
                </script>
                <div id="role_list" style="display: inline-block"></div>
                <script type="x-handlebar-template" id="role_list_tpl">
                    <div class="se-re">
                        <select ng-options="c.id as c.realName for c in salesman.content" ng-model="param.roleId"
                                class="role_select ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" class="" selected="selected">业务员</option>
                            {{#each content}}
                            <option label="{{realName}}" value="{{id}}">{{realName}}</option>
                            {{/each}}

                        </select>
                        <span class="se-po"></span>
                    </div>
                </script>
                <div class="se-re">
                    <select ng-model="data.sId" ng-options="i.id as i.name for i in orderState"
                            class="ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched">
                        <option value="" class="">状态</option>
                        <option label="待提交" value="number:1">待提交</option>
                        <option label="面审中" value="number:3">面审中</option>
                        <option label="风控专员" value="number:4">风控专员</option>
                        <option label="风控考察" value="number:5">风控考察</option>
                        <option label="门店经理审核" value="number:6">门店经理审核</option>
                        <option label="区域经理审核" value="number:8">区域经理审核</option>
                        <option label="总经理审核" value="number:9">总经理审核</option>
                        <option label="待签订合同" value="number:10">待签订合同</option>
                        <option label="红本抵押" value="number:11">红本抵押</option>
                        <option label="等待放款" value="number:12">等待放款</option>
                        <option label="等待还款" value="number:13">等待还款</option>
                        <option label="取消申请" value="number:14">取消申请</option>
                        <option label="已拒绝" value="number:15">已拒绝</option>
                        <option label="已结清" value="number:17">已结清</option>
                        <option label="已逾期" value="number:18">已逾期</option>
                        <option label="已毁约" value="number:19">已毁约</option>
                        <option label="等待查封" value="number:20">等待查封</option>
                        <option label="查封成功" value="number:21">查封成功</option>
                        <option label="已坏账" value="number:22">已坏账</option>
                        <option label="查封失败" value="number:23">查封失败</option>
                        <option label="查封中" value="number:24">查封中</option>
                    </select>
                    <span class="se-po"></span>
                </div>
                <button class="search">
                    <i class="iconfont icon-sousuo"></i>
                </button>
            </div>
            <!--提示操作-->
                <div class="public-bghint">
                    <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                    <i class="iconfont icon-icon-copy-copy"></i>
                    <span class="calNum">筛选<span class="result">0</span>条结果</span>
                </div>
                <ul class="public-ulList" ng-show="loanLaterShow.caozuo">
                    <li>显示拥有该栏目管理权限的数据</li>
                    <li>拥有权限的管理员会显示对应的操作按钮；</li>
                </ul>
                <div style="height: 20px;"></div>
                <div class="table-scroll">
                    <!--tabel 列表-->
                    <table class="table public-table PoInput">
                        <thead>
                        <tr>
                            <td>全选</td>
                            <td>结清日期</td>
                            <td>客户姓名</td>
                            <td>业务员</td>
                            <td>已还款/总期</td>
                            <td>借款金额</td>
                            <td>实际收款</td>
                            <td>未还总额</td>
                            <td>分期状态</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody id="settle_content">

                        </tbody>

                        <tfoot class="public-botPage">
                        <tr>
                            <td>
                                <!-- 全选反选  -->
                                <input type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
                            </td>
                            <td colspan="12">
                                <div class="public-botPage-left">
                            <span>
                                <span>全选</span>
                            </span>
                                    <div class="se-re">
                                        <select class="tabHint supportc ng-pristine ng-untouched ng-valid ng-not-empty"
                                                id="selExportvalid" ng-model="selExportval" ng-change="selExport(this)">
                                            <option value="-1" selected="selected">批量操作</option>
                                            <!-- ngIf: HbHr.hr279 -->
                                            <option value="1" ng-if="HbHr.hr279" class="">批量导出</option>
                                            <!-- end ngIf: HbHr.hr279 -->
                                        </select>
                                        <span class="se-po"></span>
                                    </div>
                                </div>
                                <div class="public-botPage-right">
                                    <!-- 页码公共引进  'work/tems3/loanBefore/page/page.html'-->

                                </div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!--底部操作-->
                </div>
        </div><!-- end ngIf: HbHr.hr164 -->
    </div>
</div>

<script id="settle_content_tpl" type="x-handlebars-template">
    {{#if content.list}}

    {{#each content.list}}

    <!-- ngRepeat: i in data.content.list -->
    <tr ng-repeat="i in data.content.list" ng-click="F.tabClick($event)"
        class="table-tr-hover ">
        <td><input type="checkbox" name="ch_id" value="{{id}}"></td>
        <td>{{settle_time}}</td>
        <td>{{personal_name}}</td>
        <td>{{admin_name}}</td>
        <td>{{#subOne sumP}}{{/subOne}}／{{at_name}}</td>
        <td>￥{{#thounsandBit apply_money}}{{/thounsandBit}}</td>
        <td>￥{{#thounsandBit sum_money}}{{/thounsandBit}}</td>
        <td>￥{{#thounsandBit late_money}}{{/thounsandBit}}</td>
        <td>完成</td>
        <td>{{s_name}}</td>
        <td>
            <div class="se-re sel-blue">
                <select class="tabHint tt415 ng-not-empty operations" data-order_id="{{id}}" data-product_id="{{p_id}}">
                    <option value="-1" selected="selected">选择操作</option>
                    {{#each ../fourthMenus}}
                    <option value="{{key}}">{{name}}</option>
                    {{/each}}
                </select>
                <span class="se-po-blue"></span>
            </div>
            <!-- ngIf: HbHr.hr263 -->
            <button class="operations_record tabHint btnQuery415"
                    id="{{id}}">
                操作记录
            </button><!-- end ngIf: HbHr.hr263 -->
        </td>
    </tr>
    {{/each}}

    {{else}}
    <tr ng-if="data.content.list.length ==0" class="">
        <td colspan="16">暂时找不到数据</td>
    </tr><!-- end ngIf: data.content.list.length ==0 -->
    {{/if}}
</script>

<script type="text/javascript" src="static/js/page/finance/settle.js?_v=190102162154"></script>

<%@include file="../../common/web_bottom.jsp" %>
